package com.walter.model.form;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @author ：ch
 * @date ：Created in 2021/5/25
 * @description：
 * @modified By：
 * @version: 1.0
 */
@Data
@Accessors(chain = true)
public class UpdatePwdForm {
    @ApiModelProperty("原密码")
    @NotNull(message = "原密码不能为空")
    @Length(min = 1,message = "原密码不能为空串")
    private String originalPwd;

    @ApiModelProperty("新密码")
    @NotNull(message = "新密码不能为空")
    @Length(min = 1,message = "新密码不能为空串")
    private String newPwd;

    @ApiModelProperty("重复密码")
    @NotNull(message = "重复密码不能为空")
    @Length(min = 1,message = "重复密码不能为空串")
    private String repeatedPwd;
}
